package com.wang.model.User;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wang.domain.enums.UserRoleEnum;
import com.wang.domain.enums.UserSexEnum;
import com.wang.model.BaseVM;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户信息模型")
public class UserResponseVM extends BaseVM {
    @ApiModelProperty(value = "id属性说明",hidden = false)
    private Integer userId;
    @ApiModelProperty(value = "用户名属性说明",hidden = false)
    private String userName;
    @ApiModelProperty(value = "真实性名属性说明",hidden = false)
    private String realName;
    @ApiModelProperty(value = "密码属性说明",hidden = false)
    private String password;
    @ApiModelProperty(value = "身份属性说明",hidden = false)
    private UserRoleEnum role;

    @ApiModelProperty(value = "电话属性说明",hidden = false)
    private String phone;

    @ApiModelProperty(value = "邮箱属性说明",hidden = false)
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "出生日期属性说明",hidden = false)
    private Date date;

    @ApiModelProperty(value = "性别属性说明",hidden = false)
    private UserSexEnum sex;
}
